<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTaskLevelsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('task_levels', function (Blueprint $table) {
            $table->id()->comment('等级任务表');
            $table->string('task_name')->comment('任务名称');
            $table->string('task_type')->comment('任务类型');
            $table->integer('limit_num')->comment('限定数量');
            $table->tinyInteger('is_show')->default(1)->comment('是否显示');
            $table->integer('sort')->comment('排序');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('task_levels');
    }
}
